
import java.sql.*;
import KC.b2b.conciliacion.*;

public class Main {
  public static void main(String[] arg) {
    try{
      Class.forName("com.inet.tds.TdsDriver").newInstance();
      Connection conn = DriverManager.getConnection("jdbc:inetdae7:sdolc01:1433?database=bank2baan","app","client");

      SumaXFechaBaan concil = new SumaXFechaBaan();
      double dbl_total = concil.totalCompara(conn.createStatement(), 15, 3, 2005 );
      System.out.println(dbl_total);
      int int_totalConciliados = concil.procesarConciliacion(null, conn, 15, 3, 2005, 12, 1 );
      System.out.println(int_totalConciliados);

      /*String str_ruta = "c:\\BM4860305.txt";

      KC.b2b.catalogos.Banco ban = KC.b2b.catalogos.Banco.instancia(conn.createStatement(), 2);

      BancomerF2 banco = new BancomerF2();
      System.out.println( banco.totalRegistros(str_ruta) );
      banco.subirRegistros( null, conn.createStatement(), ban, 31, 3, 2005, 0, 0, str_ruta, "kines");*/

      conn.close();
    }catch( Exception ex ){
      ex.printStackTrace(System.out);
    }
  }
}
